package com.qf.resourceserver.controller;

import com.qf.resourceserver.pojo.UserInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/userinfo")
public class UserInfoController {

    @RequestMapping
    public Object userInfo() {
        UserInfo userInfo = new UserInfo();
        userInfo.setGender("男");
        userInfo.setNickyname("XXXXXXX");
        userInfo.setProfile("http://localhost/ly.gif");
        return userInfo;
    }
}
